package com.firemoss.atonement.example.contactmanager.model
{
	[Bindable]
	public class Contact extends Entity
	{
		public var firstName : String
		public var lastName : String
		public var phone : String
		public var email : String
		public var notes : String
		[PropertyResolver( type="com.firemoss.atonement.entitymanager.util.EntityIdResolver", functionName="resolve", sourcePropertyName="companyId" )]
		public var company : Company
		
		public static function createWithDefaults( company : Company = null ) : Contact
		{
			var contact : Contact = new Contact()
			contact.company = company
			return contact;
		}
	}
	
}